<nz-breadcrumb class="breadcrumb-pos">
  <i nz-icon type="link" theme="outline" style="color:#1890FF;padding-right:4px"></i>
  <nz-breadcrumb-item>
    <a routerLink="/main/notdealfault">不指派任务</a>
  </nz-breadcrumb-item>
  <nz-breadcrumb-item>
    添加不指派任务
  </nz-breadcrumb-item>
</nz-breadcrumb>
<div nz-row [nzGutter]="8" style="border-bottom: 1px solid #ccc;margin-bottom: 8px;min-width: 800px;">
  <div nz-col [nzSpan]="8">
    <nz-form-item nzFlex>
      <nz-form-label>品牌名称</nz-form-label>
      <nz-form-control>
          <nz-select [(ngModel)]="brandName" (ngModelChange)="getDatalist()" style="width: 100%;min-width: 100px;">
            <nz-option nzLabel="系统参数" nzValue="-1"></nz-option>
            <nz-option *ngFor="let data of brandlist" nzLabel="{{data.name}}" nzValue="{{data.id}}"></nz-option>
          </nz-select>
      </nz-form-control>
    </nz-form-item>
  </div>
</div>

<nz-table #rowSelectionTable [nzData]="datalist" [nzLoading]="loading" [nzShowPagination]="false" [nzBordered]="true">
  <thead>
    <tr>
      <th nzShowCheckbox [(nzChecked)]="allChecked" [nzIndeterminate]="indeterminate" (nzCheckedChange)="checkAll($event)"></th>
      <th>品牌名称</th>
      <th>故障名称</th>
      <th>故障代码</th>
      <th>描述</th>
      <th>所需时长</th>
    </tr>
  </thead>
  <tbody>
    <tr *ngFor="let data of datalist">
      <td nzShowCheckbox [(nzChecked)]="data.checked" (nzCheckedChange)="refreshStatus()"></td>
      <td>{{data.brandId == -1 ? '系统参数' : brandinfo[data.brandId].name}}</td>
      <td>{{data.name}}</td>
      <td>{{data.codes}}</td>
      <td>{{data.profile?data.profile:"--"}}</td>
      <td>{{data.durationDate}}</td>
    </tr>
  </tbody>
</nz-table>
<button nz-button nzType="primary" style="margin:12px 50px 0 0" [nzLoading]="btn_loading" (click)="addNotdealFault()">确认添加</button>
<button nz-button nzType="primary" routerLink="/main/notdealfault">返回</button>
<nz-pagination style="float:right;margin-top:12px" [nzPageIndex]="PageIndex" [nzPageSize]="PageSize" [nzTotal]="PageTotal" (nzPageIndexChange)="PageIndexChange($event)" [nzHideOnSinglePage]="true" [nzShowTotal]="totalTemplate"></nz-pagination>
<ng-template #totalTemplate let-total>
  共 {{total}} 条数据
</ng-template>
